package com.nowcoder.community.service;

import com.nowcoder.community.pojo.Comment;

import java.util.List;

public interface CommentService {

    List<Comment> findCommentByEntity(int entityType, int entityId, int offset, int limit);

    int findCountByEntity(int entityType, int entityId);

    int addComment(Comment comment);

    Comment findCommentById(int id);

    int removeCommentsByUserId(int userId);
}
